<?php
// +----------------------------------------------------------------------
// | 幕小铺
// +----------------------------------------------------------------------
// | 版权所有 2016~2020 幕小铺科技（大连）有限公司
// +----------------------------------------------------------------------
// | 2020/03/14
// +----------------------------------------------------------------------
namespace app\video\behavior\submit_video_info_before;

/**
 * 检测精华版视频，必须是长视频类型
 * @package app\video\behavior\submit_video_info_before
 * @author jason wang
 */
class submitVideoPlayType{
    /**
     * 执行行为 run方法是Behavior唯一的接口
     * @access public
     * @return void
     */
    public function run($params){
    	$play_type 		= $params['play_type'];
    	$son_play_id 	= $params['son_play_id'];
		if($son_play_id != '' && $play_type != 2){
			//错误视频类型错误
			return array_out(-1001, '视频类型选择错误');
		}
    }
}
